package day01;

public class Program10 {
    public static void main(String[] args) {
            int a = 5;
            for (int i = 0; i<=a ; i++){
                for (int g= a ; g>i;g--){
                    System.out.print(" ");
                }
                for (int z = 0;z<2*i-1;z++){
                    System.out.print("*");

                }
                System.out.println();
            }

        for (int i = 4; i>=1 ; i--){
            for (int g= 1;g<i;g++){
                System.out.print(" ");
            }
            for (int z = 0;z<2*i-1;z++){
                System.out.print("*");

            }
            System.out.println();
        }
            }
        }


